.debugger-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #1e1e1e;
  color: #d4d4d4;
  border-left: 1px solid #3c3c3c;
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

.debugger-panel.visible {
  right: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #2d2d30;
  border-bottom: 1px solid #3c3c3c;
}

.panel-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #cccccc;
}

.close-btn {
  background: none;
  border: none;
  color: #cccccc;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* 调试控制按钮 */
.debug-controls {
  display: flex;
  padding: 12px;
  gap: 8px;
  background: #252526;
  border-bottom: 1px solid #3c3c3c;
}

.debug-btn {
  background: #0e639c;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  min-width: 36px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.debug-btn:hover:not(:disabled) {
  background: #1177bb;
}

.debug-btn:disabled {
  background: #3c3c3c;
  color: #808080;
  cursor: not-allowed;
}

.debug-btn.continue {
  background: #16a085;
}

.debug-btn.continue:hover:not(:disabled) {
  background: #1abc9c;
}

.debug-btn.terminate {
  background: #e74c3c;
}

.debug-btn.terminate:hover:not(:disabled) {
  background: #c0392b;
}

/* 调试信息 */
.debug-info {
  padding: 12px 16px;
  background: #252526;
  border-bottom: 1px solid #3c3c3c;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.status-label {
  color: #969696;
}

.status-value {
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}

.status-value.running {
  background: #16a085;
  color: white;
}

.status-value.stopped {
  background: #f39c12;
  color: white;
}

.status-value.paused {
  background: #e67e22;
  color: white;
}

.status-value.terminated {
  background: #e74c3c;
  color: white;
}

.current-line {
  color: #569cd6;
  font-weight: 600;
}

/* 标签页 */
.debug-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-headers {
  display: flex;
  background: #2d2d30;
  border-bottom: 1px solid #3c3c3c;
}

.tab-header {
  background: none;
  border: none;
  color: #cccccc;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 2px solid transparent;
  flex: 1;
  text-align: center;
}

.tab-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tab-header.active {
  color: #ffffff;
  border-bottom-color: #007acc;
  background: rgba(0, 122, 204, 0.1);
}

.tab-content {
  flex: 1;
  overflow-y: auto;
}

/* 通用区块样式 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #2d2d30;
  border-bottom: 1px solid #3c3c3c;
}

.section-header h5 {
  margin: 0;
  font-size: 12px;
  color: #cccccc;
  text-transform: uppercase;
  font-weight: 600;
}

.refresh-btn, .clear-btn {
  background: none;
  border: none;
  color: #cccccc;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  font-size: 12px;
}

.refresh-btn:hover, .clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 变量面板 */
.variables-list {
  padding: 8px 0;
}

.variable-item {
  padding: 4px 16px;
  border-bottom: 1px solid #2d2d30;
}

.variable-item.child {
  padding-left: 32px;
  background: rgba(255, 255, 255, 0.02);
}

.variable-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}

.variable-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.expand-icon {
  color: #969696;
  font-size: 10px;
  width: 12px;
}

.variable-name {
  color: #9cdcfe;
  font-weight: 600;
  min-width: 80px;
}

.variable-type {
  color: #4ec9b0;
  font-size: 11px;
  min-width: 60px;
}

.variable-value {
  color: #ce9178;
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.variable-children {
  margin-left: 20px;
  border-left: 1px solid #3c3c3c;
}

/* 监视面板 */
.watch-input {
  display: flex;
  padding: 8px 16px;
  gap: 8px;
  background: #252526;
  border-bottom: 1px solid #3c3c3c;
}

.watch-input input {
  flex: 1;
  background: #3c3c3c;
  border: 1px solid #5a5a5a;
  color: #d4d4d4;
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.watch-input input:focus {
  outline: none;
  border-color: #007acc;
}

.watch-input button {
  background: #0e639c;
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.watch-list {
  padding: 8px 0;
}

.watch-item {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  gap: 8px;
  border-bottom: 1px solid #2d2d30;
}

.watch-expression {
  color: #9cdcfe;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  flex: 1;
}

.watch-value {
  color: #ce9178;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.watch-error {
  color: #f44747;
  font-size: 11px;
}

.remove-btn {
  background: none;
  border: none;
  color: #969696;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 14px;
}

.remove-btn:hover {
  background: #e74c3c;
  color: white;
}

/* 调用栈面板 */
.stack-list {
  padding: 8px 0;
}

.stack-item {
  padding: 8px 16px;
  border-bottom: 1px solid #2d2d30;
  cursor: pointer;
}

.stack-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.frame-name {
  color: #dcdcaa;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
}

.frame-location {
  color: #969696;
  font-size: 11px;
  font-family: 'Courier New', monospace;
}

/* 断点面板 */
.breakpoints-list {
  padding: 8px 0;
}

.breakpoint-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #2d2d30;
  gap: 8px;
}

.breakpoint-item.disabled {
  opacity: 0.6;
}

.breakpoint-item.unverified {
  opacity: 0.7;
}

.breakpoint-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.breakpoint-type {
  color: #4ec9b0;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.breakpoint-line {
  color: #9cdcfe;
  font-size: 12px;
}

.breakpoint-condition,
.breakpoint-log {
  color: #ce9178;
  font-size: 11px;
  font-family: 'Courier New', monospace;
}

.breakpoint-actions {
  display: flex;
  gap: 4px;
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  font-size: 12px;
}

/* 输出面板 */
.output-content {
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.4;
}

.output-line {
  padding: 2px 0;
  color: #d4d4d4;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 空状态 */
.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: #969696;
}

.empty-state p {
  margin: 0;
  font-size: 12px;
}

/* 滚动条样式 */
.panel-content::-webkit-scrollbar,
.tab-content::-webkit-scrollbar {
  width: 6px;
}

.panel-content::-webkit-scrollbar-track,
.tab-content::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.panel-content::-webkit-scrollbar-thumb,
.tab-content::-webkit-scrollbar-thumb {
  background: #424242;
  border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover,
.tab-content::-webkit-scrollbar-thumb:hover {
  background: #4f4f4f;
} 